package com.usian.account.controller;

import com.usian.account.model.Account;
import com.usian.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/11 14:14
 */@RestController
@RequestMapping("/account")
public class AccountController {

     @Autowired
    AccountService accountService;


     @PostMapping("updateAcc")
     public String updateAcc(@RequestBody Account account){
         accountService.updateAccount(account);
         return "OK";
     }
}
